<%@ Page Language="C#" MasterPageFile="~/Admin.master" AutoEventWireup="true" CodeFile="EditAccount.aspx.cs" Inherits="Pages_Admin_EditAccounts" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:Label ID="Label1" runat="server" Font-Bold="True" Text="Edit Account" CssClass="header"></asp:Label><br />
    <br />
    <table border="1" class="table01" style="width: 578px">
        <tr>
            <td style="width: 107px; height: 20px">
                <strong>Username</strong></td>
            <td style="width: 447px; height: 20px">
                <asp:TextBox ID="txtUserName" runat="server" MaxLength="12" ReadOnly="True"></asp:TextBox>&nbsp;
            </td>
        </tr>
        <tr >
            <td style="width: 107px;">
                <strong>
                Password</strong></td>
            <td style="width: 447px;">
                <asp:TextBox ID="txtPassword" runat="server" MaxLength="12" TextMode="Password" Width="149px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="reqPassword" runat="server" ControlToValidate="txtPassword"
                    ErrorMessage="Password cannot be blank">*</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="regPassword" runat="server" ControlToValidate="txtPassword"
                    ErrorMessage="Invalid Password (must be 6-12 characters)" ValidationExpression="^[\d\w]{6,12}$">*</asp:RegularExpressionValidator>
                </td>
        </tr>
        <tr>
            <td style="width: 107px">
                <strong>FullName</strong></td>
            <td style="width: 447px">
                <asp:TextBox ID="txtFullName" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="reqFullName" runat="server" ControlToValidate="txtFullName"
                    ErrorMessage="FullName cannot be blank">*</asp:RequiredFieldValidator></td>
        </tr>
        <tr>
            <td style="width: 107px">
                <strong>Address</strong></td>
            <td style="width: 447px">
                <asp:TextBox ID="txtAddress" runat="server" MaxLength="400" TextMode="MultiLine"></asp:TextBox>
                <asp:RequiredFieldValidator ID="reqAddress" runat="server" ControlToValidate="txtAddress"
                    ErrorMessage="Address cannot be blank">*</asp:RequiredFieldValidator></td>
        </tr>
        <tr>
            <td style="width: 107px">
                <strong>Email</strong></td>
            <td style="width: 447px">
                <asp:TextBox ID="txtEmail" runat="server"></asp:TextBox>&nbsp;
                <asp:RegularExpressionValidator ID="regEmail" runat="server" ControlToValidate="txtEmail"
                    ErrorMessage="Invalid Email" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">*</asp:RegularExpressionValidator></td>
        </tr>
        <tr>
            <td style="width: 107px">
                <strong>PhoneNumber</strong></td>
            <td style="width: 447px">
                <asp:TextBox ID="txtPhoneNumber" runat="server"></asp:TextBox>
                <asp:RegularExpressionValidator ID="regPhone" runat="server" ControlToValidate="txtPhoneNumber"
                    ErrorMessage="Invalid PhoneNumber" ValidationExpression="^[0-9]{9,20}$">*</asp:RegularExpressionValidator></td>
        </tr>
        <tr>
            <td style="width: 107px">
                <strong>Branch</strong></td>
            <td style="width: 447px">
                <asp:DropDownList ID="ddlBranch" runat="server" DataSourceID="ObjectDataSource1"
                    DataTextField="BranchName" DataValueField="PinCode">
                </asp:DropDownList>
                <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="ListBranch"
                    TypeName="DALBranch"></asp:ObjectDataSource>
            </td>
        </tr>
        <tr>
            <td style="width: 107px">
                <strong>IsWorking</strong></td>
            <td style="width: 447px">
                <asp:CheckBox ID="cboIsWorking" runat="server" /></td>
        </tr>
        <tr>
            <td style="width: 107px">
            </td>
            <td style="width: 447px">
                <asp:Button ID="btnSubmit" runat="server" OnClick="btnSubmit_Click" Text="Submit" />
                &nbsp; &nbsp;
                <input name="btnReset" type="reset" value="Reset" />
            </td>
        </tr>
        <tr>
            <td style="width: 107px; height: 61px">
            </td>
            <td style="width: 447px; height: 61px">
                <asp:ValidationSummary ID="ValidationSummary1" runat="server" />
                <br />
                <asp:Label ID="lblMessage" runat="server"></asp:Label></td>
        </tr>
    </table>
</asp:Content>

